<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                xmlns:s="http://jboss.com/products/seam/taglib"
                xmlns:ui="http://java.sun.com/jsf/facelets"
                xmlns:f="http://java.sun.com/jsf/core"
                xmlns:h="http://java.sun.com/jsf/html"
		    	xmlns:rich="http://richfaces.org/rich"
		    	xmlns:a="http://richfaces.org/a4j"
	            xmlns:p="http://primefaces.prime.com.tr/ui" 
    			xmlns:kiwi="http://www.kiwi-project.eu/jsf">

       <s:span id="testMultifactorRecomlist" rendered="#{(currentUser.userPreference != null) and (currentUser.userPreference.showMultiFactorRecommendation)}">
			<p:tab title="Multifactor recommendations">
	            <s:span id="recomMultiFactorList" rendered="#{recommendationActionScope.multiFactorRecommendations.size() &gt; 0}">
	                <div><ul>
	                    <ui:repeat var="recommendation" value="#{recommendationActionScope.multiFactorRecommendations}" >
	                        <li>
	                        <s:link view="/home.xhtml" value="#{recommendation.title}" propagation="none">
	                            <f:param name="title" value="#{recommendation.title}"/>
	                            <f:param name="uri"/>
	                            <f:param name="id" />
	                            <f:param name="kiwiid" value="#{recommendation.resource.kiwiIdentifier}"/>
	                        </s:link><br/>
	                        <h:outputText value="by "/>
	                        <h:outputText value="#{recommendation.author.firstName} "/>
	                        <h:outputText value="#{recommendation.author.lastName}"/>
	                        <br/>
	                        <h:outputText value="score: "/>
	                        <h:outputText value="#{recommendation.contentItemScore} "/><h:outputText value="%"/>
	                        </li>
	                    </ui:repeat>
	                    </ul>
	                </div>
	            </s:span>
	            <s:span id="norecomMultiFactorList" rendered="#{recommendationActionScope.multiFactorRecommendations.size() &lt;= 0}">
	                        <h:outputText value="No Multifactor Recommendations"/>
	            </s:span>
	        </p:tab>
        </s:span>
</ui:composition>